package com.wf.netty.link;

import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * 功能描述
 *
 * @author wf
 * @since 2022/5/12
 */
public class ServerInitializer extends ChannelInitializer<Channel> {
    @Override
    protected void initChannel(Channel ch) throws Exception {
        ch.pipeline().addLast(new ServerDecoder());
        ch.pipeline().addLast(new ServerHandler());
        ch.pipeline().addLast(new ServerEncoder());
//        ch.pipeline().addLast(new MyToStringEncoder());
    }
}
